package com.xinqi.modules.user.auth.form;

import com.xinqi.common.core.constant.UserConstants;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class AppRegisterBody implements Serializable {

    @NotBlank(message = "{user.phonenumber.not.blank}")
    @Length(min = UserConstants.PHONENUM_MIN_LENGTH, message = "{user.phonenumber.length.valid}")
    private String  mobile;

    @NotBlank(message = "{sms.code.not.blank}")
    private String  smsCode;

    /**
     * 设备类型 pc Android ios
     */
    @NotBlank(message = "设备类型不能为空 pc Android ios")
    private String deviceType;
}
